//
//  Calculator.m
//  MacTestProject
//
//  Created by LiuLichen on 2022/4/11.
//

#import "Calculator.h"

@implementation Calculator

// Protocol methods
- (void) protocolRequiredMethod {
    NSLog(@"Calculator protocolRequiredMethod");
}

- (void) protocolOptionalMethod {
    NSLog(@"Calculator protocolOptionalMethod");
}

// Class methods
- (double) square: (double)number {
    return number * number;
}

- (double) sumOfNum1: (double)num1 :(double)num2 {
    return num1 + num2;
}

@end
